package com.zzty.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Log {
    private static final Logger logger = LoggerFactory.getLogger(Log.class);
    public static void main(String[] args) {
        int status = 0;
        System.out.println("begin");
        if (status == 0) {
            logger.info("status:{},{}", status,"AAAAA");

        } else {
            logger.info("status:{}", status);
        }
        logger.info("end!");
        logger.debug("This is debug");
        logger.warn("this is warning");
        try{
            int a=1/0;
        }catch (Exception ex){
            ex.printStackTrace();
            logger.error(ex.getMessage());
        }

    }
}
